/**
 * Cookie 封装
 * 
 * 版本：v1.0
 * 
 * Stanley
 **/
layui.define(['jquery'],
    function (exports) {
        var $ = layui.jquery;
        var kaCookie = new function () {
            this.set = function (name, value, day, path, domain) {
                $.cookie(name, value, { domain: domain, path: "/", expires: day })
            }
            this.get = function (name) { // 获取
                return $.cookie(name);
            }
            this.clear = function (name) { // 删除
                $.removeCookie(name, null, { path: '/' });
            }
        };
        exports('kaCookie', kaCookie);
    }
)